const Home = () =>
  import( /* webpackChunkName: "Home" */ 'views/home/Home.vue')
const Welcome = () =>
  import( /* webpackChunkName: "Login_Welcome" */ 'views/home/Welcome.vue')
/* 系统管理 */
const SysM = () =>
  import( /* webpackChunkName: "System_Management" */ 'views/system/SysM.vue')
const UserM = () =>
  import( /* webpackChunkName: "System_Management" */ 'views/system/UserM.vue')
const RoleM = () =>
  import( /* webpackChunkName: "System_Management" */ 'views/system/RoleM.vue')
const RightsM = () =>
  import( /* webpackChunkName: "System_Management" */ 'views/system/RightsM.vue')


const pagesRoute = [
  {
    path: '/home',
    component: Welcome,
    meta: {
      title: '欢迎回来',
    },
  },
  {
    path: '/system',
    component: SysM,
    meta: {
      title: '系统管理',
    },
  },
  {
    path: '/userm',
    component: UserM,
    meta: {
      title: '用户管理',
    },
  },
  {
    path: '/rolem',
    name:'/rolem',
    component: RoleM,
    meta: {
      title: '角色管理',
    },
  },
  {
    path: '/rightsm',
    component: RightsM,
    meta: {
      title: '权限管理',
    },
  },
]
export default {
  path: '/home',
  component: Home,
  rediract: '/welcome',
  meta: {
    title: '首页 - Element',
  },
  children: [
    ...pagesRoute,
  ],
}